<?php

namespace Home\Model;
use Think\Model\RelationModel;
class XiangmuModel extends RelationModel{
    protected $_link = array(
     'lb'=>array(
        'mapping_type'=> self::BELONGS_TO,
          'foreign_key'   => 'leibie',
       'mapping_name'  => 'lb',
        'mapping_fields'  => 'lbname',
         
        'as_fields '=>'lbname',
    
	 ),);
}